<%--
  Created by IntelliJ IDEA.
  User: SXT
  Date: 2019/10/9
  Time: 10:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>成功页面</title>
    <base href="<%=request.getContextPath()+"/"%>">
</head>
<body>
<h3>成功页面</h3>

<h4 style="float: right"><a href="loginOut">退出</a> </h4>

<h3>sessionID:<%=session.getId()%></h3>

<hr/>

<shiro:hasRole name="学生">

   <h1>查询</h1>
</shiro:hasRole>

<shiro:hasRole name="老师">

    <h1>删除</h1>
</shiro:hasRole>

<shiro:hasRole name="管理员">

    <h1>查询</h1>
    <h1>删除</h1>
    <h1>添加</h1>
</shiro:hasRole>


<hr/>


<c:forEach items="${list}" var="menu">

      <h4>${menu.mname}</h4>

      <c:forEach items="${menu.list}" var="menu2">

           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           <a href="${menu2.url}">${menu2.mname}</a><br/>

      </c:forEach>


</c:forEach>




</body>
</html>
